/*
 *  Copyright 2001-2004 The Apache Software Foundation
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package ar.uba.fi.posgrado.economy.web.form.pay;

import java.util.ArrayList;
import java.util.List;

import org.apache.struts.action.ActionForm;
import org.apache.struts.util.LabelValueBean;

import ar.uba.fi.posgrado.economy.model.Honorary;
import ar.uba.fi.posgrado.economy.model.Pay;

/**
 * Form para {@link Pay}
 * 
 * @author nicolas.gonzalez
 * @see ActionForm
 */
@SuppressWarnings("serial")
public class PayForm extends ActionForm {

    private Long id;

    private String date;
    private Double value;
    
    private List<Honorary> honoraries = new ArrayList<Honorary>();
    
    private String collectTypeSelected;
    private List<LabelValueBean> collectTypeOptions = new ArrayList<LabelValueBean>();
    
    private Long teacherId;
    private String teacherName;
    
    private String courseSelected;
    private List<LabelValueBean> courseOptions = new ArrayList<LabelValueBean>();
    
    private String reason;
    private String code;

    // para los pagos en si
    private Long honoraryId;
    private String honoraryDate;
    private String honoraryCourseInfo;
    private Double honoraryValue;
    private String honoraryReason;
    
    
    
    public void clearForShowFind() {
    	this.teacherId = null;
    	this.teacherName = "";
    }
    
    
    
    
    /**
	 * @return the honoraryValue
	 */
	public Double getHonoraryValue() {
		return honoraryValue;
	}




	/**
	 * @param honoraryValue the honoraryValue to set
	 */
	public void setHonoraryValue(Double honoraryValue) {
		this.honoraryValue = honoraryValue;
	}




	/**
	 * @return the honoraryId
	 */
	public Long getHonoraryId() {
		return honoraryId;
	}




	/**
	 * @param honoraryId the honoraryId to set
	 */
	public void setHonoraryId(Long honoraryId) {
		this.honoraryId = honoraryId;
	}




	/**
	 * @return the honoraryDate
	 */
	public String getHonoraryDate() {
		return honoraryDate;
	}




	/**
	 * @param honoraryDate the honoraryDate to set
	 */
	public void setHonoraryDate(String honoraryDate) {
		this.honoraryDate = honoraryDate;
	}




	/**
	 * @return the honoraryCourseInfo
	 */
	public String getHonoraryCourseInfo() {
		return honoraryCourseInfo;
	}




	/**
	 * @param honoraryCourseInfo the honoraryCourseInfo to set
	 */
	public void setHonoraryCourseInfo(String honoraryCourseInfo) {
		this.honoraryCourseInfo = honoraryCourseInfo;
	}







	/**
	 * @return the honoraryReason
	 */
	public String getHonoraryReason() {
		return honoraryReason;
	}




	/**
	 * @param honoraryReason the honoraryReason to set
	 */
	public void setHonoraryReason(String honoraryReason) {
		this.honoraryReason = honoraryReason;
	}




	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * @return the date
	 */
	public String getDate() {
		return date;
	}
	/**
	 * @param date the date to set
	 */
	public void setDate(String date) {
		this.date = date;
	}
	/**
	 * @return the value
	 */
	public Double getValue() {
		return value;
	}
	/**
	 * @param value the value to set
	 */
	public void setValue(Double value) {
		this.value = value;
	}
	/**
	 * @return the honoraries
	 */
	public List<Honorary> getHonoraries() {
		return honoraries;
	}
	/**
	 * @param honoraries the honoraries to set
	 */
	public void setHonoraries(List<Honorary> honoraries) {
		this.honoraries = honoraries;
	}
	/**
	 * @return the collectTypeSelected
	 */
	public String getCollectTypeSelected() {
		return collectTypeSelected;
	}
	/**
	 * @param collectTypeSelected the collectTypeSelected to set
	 */
	public void setCollectTypeSelected(String collectTypeSelected) {
		this.collectTypeSelected = collectTypeSelected;
	}
	/**
	 * @return the collectTypeOptions
	 */
	public List<LabelValueBean> getCollectTypeOptions() {
		return collectTypeOptions;
	}
	/**
	 * @param collectTypeOptions the collectTypeOptions to set
	 */
	public void setCollectTypeOptions(List<LabelValueBean> collectTypeOptions) {
		this.collectTypeOptions = collectTypeOptions;
	}
	/**
	 * @return the teacherId
	 */
	public Long getTeacherId() {
		return teacherId;
	}
	/**
	 * @param teacherId the teacherId to set
	 */
	public void setTeacherId(Long teacherId) {
		this.teacherId = teacherId;
	}
	/**
	 * @return the teacherName
	 */
	public String getTeacherName() {
		return teacherName;
	}
	/**
	 * @param teacherName the teacherName to set
	 */
	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}
	/**
	 * @return the courseSelected
	 */
	public String getCourseSelected() {
		return courseSelected;
	}
	/**
	 * @param courseSelected the courseSelected to set
	 */
	public void setCourseSelected(String courseSelected) {
		this.courseSelected = courseSelected;
	}
	/**
	 * @return the courseOptions
	 */
	public List<LabelValueBean> getCourseOptions() {
		return courseOptions;
	}
	/**
	 * @param courseOptions the courseOptions to set
	 */
	public void setCourseOptions(List<LabelValueBean> courseOptions) {
		this.courseOptions = courseOptions;
	}
	/**
	 * @return the reason
	 */
	public String getReason() {
		return reason;
	}
	/**
	 * @param reason the reason to set
	 */
	public void setReason(String reason) {
		this.reason = reason;
	}
	/**
	 * @return the code
	 */
	public String getCode() {
		return code;
	}
	/**
	 * @param code the code to set
	 */
	public void setCode(String code) {
		this.code = code;
	}

    
    
	
}
